package org.ssp.util;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;


/*
 *自定义信任管理类，需要实现X509TrustManager接口
 */
public class MyX509TrustMannger implements X509TrustManager {

	//检查客户端证书
	@Override
	public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {

	}

	//服务器证书验证
	@Override
	public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {

	}

	
	@Override
	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}

}
